package com.lin.chapter30.chapter2.builder;

public abstract class CarBuilder {
	private ICar car;
	private BluePrint bluePrint;

	public Car buildCar(){
		return new Car(this.buildEngine(), this.buildWheel());
	}

	public void receiveBlueprint(BluePrint bluePrint){
		this.bluePrint = bluePrint;
	}

	protected BluePrint getBluePrint(){
		return bluePrint;
	}

	protected abstract String buildWheel();
	protected abstract String buildEngine();

}
